< previous page page_376 next page >

Page 376
Using the Class Builder
When you create a new class, Visual Basic presents the option of creating an empty class or starting the Class Builder (see Figure 16.6).
note.gif If you do not see the Class Builder as shown in Figure 16.6, use Add-In Manager (available in the Add-Ins menu) to make it available in Visual Basic. square.gif

0376-01.jpg
Figure 16.6
Double-clicking Class Builder starts a tool
to help you organize classes in your application.
The Class Builder can be used to generate outlines for new classes or modify and reorganize existing classes. Figure 16.7 shows the Class Builder with the clsEmployee class loaded.
0376-02.jpg
Figure 16.7
The Class Builder provides a graphic interface to the classes,
properties, methods, constants, and events in your application.
To add an item to your project, click one of the toolbar buttons; the Class Builder displays a dialog box where you can enter all the attributes of the new item. Figure 16.8 shows the dialog box presented for a new method.

 
< previous page page_376 next page >